xend: On block-attach, remove device information when VmError occurs.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Jan 2008 09:51:49 +0000 (09:51 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Jan 2008 09:51:49 +0000 (09:51 +0000)
commitbf4b59a4c7dc168be4e758b778125767ad3b0670
treecbdf5d81a181c06f05c463c15a19c0dc81efd76a
parent92765dcf802a54c21134a175ef968d19e9bc3e93
xend: On block-attach, remove device information when VmError occurs.

I tested xm block-attach command with a wrong
parameter(file:). Naturally a command error occurred. Then I retested
xm block-attach command with a correct parameter(phy:). But a command
error occurred again. The second command error occurred because Xend
did not remove device information from self.info when the first
command error occurred.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendDomainInfo.py